package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.PostImgRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 租售房源图片
 * Created by guilin on 16/1/29.
 */
public class PostImgApi extends SaleApi<PostImgRo> {

    private String postId;

    public PostImgApi(Class<?> tag, Class<PostImgRo> aClass, IResponseListener<PostImgRo> iResponseListener, String postId) {
        super(tag, aClass, iResponseListener);
        this.postId = postId;
    }

    public PostImgApi(Class<?> tag, Class<PostImgRo> aClass, IResponseListener<PostImgRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    @Override
    protected void setParams() {
        putParams("postId", postId);
    }

    @Override
    protected String getPath() {
        return "PostImg";
    }
}
